Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Constants and Data Types
The Applet Locator


Applet Locator Callback Structure

If you are asynchronously retrieving HTML information when creating an applet locator, you must pass a data structure that supplies a callback function. This data structure is defined by the JMAppletLocatorCallbacks data type.

struct JMAppletLocatorCallbacks {
   UInt32         fVersion;   /* set to kJMVersion */
   JMFetchCompleted fCompleted;/* text has been retrieved */
};
Field Description
fVersion
The version of JManager. You should set this field to kJMVersion.
fCompleted
A pointer to a function that should execute after the HTML data has been successfully retrieved and parsed. The callback function has the following type definition:
               typedef void (*JMFetchCompleted) (
                  JMAppletLocatorRef ref, JMLocatorErrors status);
For more information, see the description of the application-defined function MyFetchCompleted.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997